<%@ page language="java" contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<title>Treatment Price Update</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="http://localhost:8080/CRM/Example/template023/css/stylemenu.css" type="text/css">
<link rel="stylesheet" href="http://localhost:8080/CRM/Example/template023/css/styles.css" type="text/css">
 <link rel="stylesheet" href="http://localhost:8080/CRM/Example/css/themeLogin.css" type="text/css">
 
   <link type="text/css" rel="stylesheet" href="../css/themeLogin.css">
    <script type="text/javascript" src="../jq/jquery-1.9.0.min.js"></script>
    <script type="text/javascript">
        $(function () {

            $('li').has('ul').mouseover(function () {
                $(this).children('ul').show();
            }).mouseout(function () {
                $(this).children('ul').hide();
            })

        });
    </script>
    <script type="text/javascript">
        function submitAnchor(name) {
            document.getElementById(name).submit();
            return true;
        }
</script>
</head>
<body bgcolor="#CCCCCC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <table width="1300" height="70" border="0" align="center" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr> 
    <td><img src="http://localhost:8080/CRM/Example/template023/images/beautyshop01.jpg" height="200" width="1300"/></td>
  </tr>
</table>
    <table width="1300" height="70" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td>    
   
<ul id="menu">
	<li><a href="http://localhost:8080/CRM/index">Home</a></li>
	<li>
		<a href="#">Treatment</a>
		<ul>
			<li>
                
		<a href="http://localhost:8080/CRM/Treatment/List">Treatment List</a>
	
			</li>
			<li>
				
		<a href="http://localhost:8080/CRM/Treatment/CreateForm">Treatment Create</a>
	
			</li>
		</ul>
	</li>
	<li>
		<a href="#">Package Information</a>
		<ul>
			<li>
				
		<a href="http://localhost:8080/CRM/Package/List">Package List</a>
	
			</li>
			<li>
				
		<a href="http://localhost:8080/CRM/Package/CreateForm">Package Create</a>
	
			</li>
		</ul>		
	</li>
    <li>
		<a href="#">Employee Information</a>
		<ul>
			<li>
				
		<a href="http://localhost:8080/CRM/Employee/List">Employee List</a>
	
			</li>
			<li>
				
		<a href="http://localhost:8080/CRM/Employee/CreateForm">Employee Create</a>
	
			</li>
            <li>
				
		<a href="http://localhost:8080/CRM/Report/Employees">Employee Report</a>
	
			</li>
		</ul>		
	</li>
    <li>
		<a href="#">Customer Information</a>
		<ul>
			<li>
				
		<a href="http://localhost:8080/CRM/Customer/List">Customer List</a>
	
			</li>
			<li>
				
		<a href="http://localhost:8080/CRM/Customer/AddForm">Add Customer</a>
	
			</li>
		</ul>		
	</li>
    <li>
		<a href="#">Sales Information</a>
		<ul>
			<li>
				
		<a href="http://localhost:8080/CRM/Report/TopTreatmentSalesFrom">Top Treatment Sales Report</a>
	
			</li>
			<li>
				
		<a href="http://localhost:8080/CRM/Transaction/TreatmentForm">Sales Transaction</a>
	
			</li>
            <li>
				
		<a href="http://localhost:8080/CRM/Transaction/Treatment/Search">Search Treatment Transaction</a>
	
			</li>
		</ul>		
	</li>
	<li>
		
		<a href="http://localhost:8080/CRM/Employee/Logout">Logout</a>
	
	</li>
</ul>
</td> <td>&#32&#32&#32&#32</td><td>&#32&#32&#32&#32</td><td>User Name: Solio</td>
  </tr>
</table>

<table width="1300" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" align="center">
  <!--DWLayoutTable-->
   
    
    <td width="300" rowspan="2" valign="top">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
     <img width="300" height="500" src="http://localhost:8080/CRM/Example/template023/images/Z-BEAUTY logo.jpg" />
    </table></td>
    <td width="1000" height="172" valign="top">
 <table>
	<form action="/CRM/Transaction/Treatment/RefundForm" method="post">
		<input type="hidden" name="userId" value="${user.userId}"/>
		Sales id: <c:out value="${user.userId}"/> <br />
		Sales name: <c:out value="${user.username}"/> <br />
		Employee ID: <input type="text" name="employeeId"/>
		Transaction ID:<input type="text" name="transactionId"/>
		<input type="submit" />
		<c:if test="${treatments != null}">
			<table>
				<thead>
					<tr>
						<th colspan="2">action</th>
						<th>EmployeeId</th>
						<th>Transaction Date</th>
						<th>Price</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach var="t" items="${treatments}">
						<tr>
							<td>
								<form name="form<c:out value="${t.transactionId}" />" method="post" action="/CRM/Transaction/Treatment/RefundForm">
									<input type="hidden" name="code" value="<c:out value="${t.transactionId}" />">
									<input type="button" value="refund" onclick="javascript:form<c:out value="${e.employeeId}" />.submit()" />
								</form>
							</td>
							<td></td>
							<td><c:out value="${t.employeeId}" /></td>
							<td><c:out value="${t.transactionDate}" /></td>
							<td><c:out value="${t.price}" /></td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</c:if>
	</form>
	<form action="/CRM/Transaction/Treatment/Search" method="post" name="pageForm">
		<input type="hidden" name="action" /> <input type="hidden"
			name="page" value="<c:out value="${page}" />" /> <input
			type="button" name="previous" value="previous" /> <input
			type="button" name="next" value="next" />
	</form>
	</table>
    </td>
</table>
<table width="1300" height="40" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#2E2500">
  <tr> 
    <td height="24" align="center" valign="middle" class="text1"> Copyright &copy; 
      2013 Beauty Salon. All rights reserved. 
      </td>
  </tr>
</table>
</body>
</html>
